//
//  AutoTableCell.m
//  News
//
//  Created by Han on 15/4/29.
//  Copyright (c) 2015年 IPingLun. All rights reserved.
//

#import "AutoTableCell.h"

@implementation AutoTableCell

@synthesize label1;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        [self drawView];
        
    }
    
    return self;
    
}


- (void)drawView {


    label1 = [UILabel new];
    label1.backgroundColor = [UIColor grayColor];
    label1.text = @"最近因为工作需要一个RTSP流媒体链接用于测试，网上找了很久也没有，索性自己搭建一个RTSP流媒体服务器。";
    label1.numberOfLines = 0;
    [self.contentView addSubview:label1];
    
    [label1 makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.left).offset(0);
        make.right.equalTo(self.right).offset(0);
        make.top.equalTo(self.top).offset(0);
        make.bottom.equalTo(self.bottom);
    }];


}


- (void)setNews:(News *)news {
    
}

@end
